package com.ruoyi.project.lely.bean.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotEmpty;
import org.hibernate.validator.constraints.Length;

/**
 * 专题
 *
 * @author luoyong
 */
@Data
@ApiModel("专题 入参DTO")
public class LyTopicDTO {

    @ApiModelProperty("ID")
    private Long id;

    @Length(max = 255, message = "专题标题长度不能超过255位")
    @NotEmpty
    @ApiModelProperty("专题标题")
    private String title;

    @Length(max = 255, message = "专题子标题长度不能超过255位")
    @ApiModelProperty("专题子标题")
    private String subtitle;

    @Length(max = 65535, message = "专题内容，富文本格式长度不能超过65535位")
    @ApiModelProperty("专题内容，富文本格式")
    private String content;

    @Digits(integer = 10 - 2, fraction = 2)
    @ApiModelProperty("专题相关商品最低价")
    private BigDecimal price;

    @Length(max = 255, message = "专题阅读量长度不能超过255位")
    @ApiModelProperty("专题阅读量")
    private String readCount;

    @Length(max = 255, message = "专题图片长度不能超过255位")
    @ApiModelProperty("专题图片")
    private String picUrl;

    @ApiModelProperty("排序")
    private Integer sortOrder;

    @Length(max = 2048, message = "专题相关商品序列码，用逗号分隔长度不能超过2048位")
    @ApiModelProperty("专题相关商品序列码，用逗号分隔")
    private String goods;

    @Length(max = 255, message = "活动分享二维码图片长度不能超过255位")
    @ApiModelProperty("活动分享二维码图片")
    private String shareUrl;

}
